<%@ Page Title="" Language="C#" MasterPageFile="~/Views/Shared/Site.Master" Inherits="MvcContrib.FluentHtml.ModelViewPage<List<Universum.Model.Domain.QuestionIT.Question>>" %>

<asp:Content ID="Content1" ContentPlaceHolderID="TitleContent" runat="server">
	Universum - Search results
</asp:Content>
<asp:Content ID="BreadcrumbsContent" ContentPlaceHolderID="Breadcrumbs" runat="server">
	<%= Html.Breadcrumb().Home().AppendText("Search results").End() %>
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="MainContent" runat="server">
	<h2>
		Search results</h2>
	<% 
		if (Model.Count == 0)
		{
	%>
	<h4>
		There are no result to display</h4>
	<%
		}
				else
				{
	%>
	<table>
		<thead>
			<th>
				Title
			</th>
			<th>
				Username
			</th>
		</thead>
		<tbody>
			<%
				foreach (var item in Model)
				{ %>
			<tr>
				<td>
					<% 
					Html.BeginLinkWithUsername<QuestionItController>(it => it.Show(item.Slug), item.Username); %>
					<%= Html.Encode(item.Title) %>
					<% Html.EndLink(); %>
				</td>
				<td>
					<%=item.Username %>
				</td>
				<%--<div class="span-22 last">
		<div class="span-22 ">
		
			<span style="font-size:medium;font-weight:bold">
				<% Html.BeginLinkWithUsername<QuestionItController>(it => it.Show(item.Slug), item.Username); %>
					<%= Html.Encode(item.Title) %>
					<% Html.EndLink(); %></span>
			<small>
				by
				<%= Html.Encode(item.Username) %>
			</small>
		</div>
		<div class="span-22">
		<fieldset>
		<legend><em>Wrote:</em></legend>
			<%= item.Text %>
			</fieldset>
		</div>
	</div>--%>
			</tr>
			<% }%>
		</tbody>
	</table>
	<% }%>
</asp:Content>
<asp:Content ID="Content3" ContentPlaceHolderID="ScriptPlaceHolder" runat="server">
</asp:Content>
